/*
 * @Description: 路由处理
 * @Project: 
 * @Author: michelle
 * @Date: 2022-02-22 14:18:30
 * @LastEditors: michelle
 * @LastEditTime: 2022-03-02 11:26:42
 * @Modified By: michelle
 * @FilePath: /trunkverse/src/router/index.jsx
 */

import React from 'react'
import  MainRoutes  from './routes'
import { BrowserRouter as Router,HashRouter} from 'react-router-dom'

export default function () {
    const [mounted, setMounted] = React.useState(false)
    React.useEffect(() => {
        setMounted(true)
    }, [])
    return mounted ? (
        <HashRouter>
            <MainRoutes />
        </HashRouter>
    ) : null
}